<!DOCTYPE html>
<style>
body {
    background: blue;
    margin: 0;
}
div {
    position: fixed;
    width: 100px;
    height: 100px;
    background: green;
}
</style>
<div></div>
